package com.brillilab.domain.po.method;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.Date;

/**
 * @author wuzhiyu
 * @Title: MethodType
 * @ProjectName brill_lab
 * @Description: TODO
 * @date 2019/2/219:37
 */
@Data
@TableName("method_type")
public class MethodType {
    @TableId(type=IdType.AUTO)
    private Long id;
    private String name;
    //一级id
    private Long firstId;
    //二级id
    private Long secondId;
    //目录层级 1，2，3
    private Integer level;
    private Long userId;
    //最近使用时间
    private Date useTime;
    private Integer isDelete;
    @JsonIgnore
    private Date createTime;
    @JsonIgnore
    private Date updateTime;
    private Integer firstSort;
    private Integer secondSort;
    //额外
    //是否可见 0隐藏1可见
    @TableField(exist=false)
    private Integer visible;
    @TableField(exist=false)
    private Integer isSystem;
    @TableField(exist=false)
    private int methodNum;
}
